<template>
	<view >
		<u-modal :show="show" :title="title" @cancel="handleCancel" :showConfirmButton="false" showCancelButton cancelText="关闭">
			<view class="slot-content">
				<file-list :fileList="fileList"></file-list>
			</view>
		</u-modal>
	</view>
</template>
<script>
import fileList from '@/pages/synergy/components/fileList.vue'
export default {
	name: 'fileModal',
	components: {
		fileList
	},
	props: {
		// 文件列表
		// fileList: {
		// 	type: String
		// },
		// 标题
		title: {
			type: String,
			default: '文件列表'
		}
	},
	data() {
		return {
			show:false,
			fileList: '' // 文件
		};
	},
	methods: {
		showModal (fileList) {
			this.fileList = fileList
			this.show = true
		},
		handleCancel () {
			this.show = false
		}
	}
};
</script>